//
//  ByModelRegistrationSubject.m
//  jinpuyiyuan_ios
//
//  Created by pro on 2017/12/9.
//  Copyright © 2017年 mc. All rights reserved.
//

#import "ByModelRegistrationSubject.h"

@implementation ByModelRegistrationSubject
- (void)setAttributes:(NSDictionary *)jsonDic{
    [super setAttributes:jsonDic];
    _cate_id = jsonDic[@"id"];
    
    NSMutableArray *temp = [NSMutableArray array];
    for (NSDictionary *dic in jsonDic[@"child"]) {
        ByModelRegistrationSubject *model = [[ByModelRegistrationSubject alloc] initContentWithDic:dic];
        [temp addObject:model];
    }
    _children = [temp copy];
    
}


@end
